.codeView {
  padding: 24px 40px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;

  .codeSnippetWrapper {
    width: 100%;
    max-width: 100%;
    .codeSnippet {
      display: block;
      overflow: auto;
      height: calc(100vh - 200px);
      > code {
        > code {
          // this is to design the line numbers culumn
          border-right: 1px solid #323232;
          padding-right: 16px !important;
          margin-right: 16px;
        }
      }
    }
    // TODO - fix this in code snippet component. it breaks when the component renders in different places
    > span {
      top: 13px !important;
    }
  }
}

.codeView ::selection {
  background-color: rgba(200, 200, 200, 0.25);
}

.img {
  width: 20px;
  margin-right: 10px;
}

.fileName {
  display: flex;
  align-items: baseline;
}

.emptyCodeView {
  margin: auto;
  text-align: center;
  font-size: 24px;
}

.highlightedRow,
.highlightedRow * {
  background-color: rgb(97, 82, 207, 0.2) !important; // Ensure that this color is applied to all children as well
}

:global {
  // after we set the line number to be inline we need to override the styles to make it look like it used to
  .linenumber {
    color: rgb(212, 212, 212) !important;
    border-right: 1px solid #323232;
    text-align: center !important;
    padding-right: 0 !important;
    margin-right: 1em !important;
    user-select: none;
    cursor: pointer;
  }
}
